import {DEMO_PRINT } from "./actionTypes";



export const printText = content => ({
    type: DEMO_PRINT,
    payload: {
        content
    }
});


//demo https://codesandbox.io/s/9on71rvnyo

// let nextTodoId = 0;
// export const addTodo = content => ({
//     type: ADD_TODO,
//     payload: {
//         id: ++nextTodoId,
//         content
//     }
// });
//
// export const toggleTodo = id => ({
//     type: TOGGLE_TODO,
//     payload: { id }
// });
//
// export const setFilter = filter => ({ type: SET_FILTER, payload: { filter } });